package com.ydc.ln.tutorial.jndi.test;

import org.apache.log4j.Logger;

public class Env {

	// ����log4j����־���������
	private Logger log = Logger.getLogger(Env.class.getName());

	// ������ʲôLDAP������Ĺ̶�д����ָ����JNDI�����ṩ���й�����
	public String factory;
	// ����l�ӵ�ַ
	public String url;
	// ��½LDAP���û��������
	public String adminUID;
	// ��½LDAP�û�����
	public String adminPWD;
	// ��ȫ������Ҫ��֤���
	public String sslTrustStore;
	// ��ȫͨ�7���
	public String securityProtocol;
	// l��TimeOut
	public String timeOut;

	/**
	 * ���캯��
	 */
	public Env() {
	}

	/**
	 * ���캯�� ��* @param factory LDAP������ ��* @param url���� LDAP URL ��* @param
	 * adminUID LDAP �û� ��* @param adminPWD LDAP ���� ��
	 */
	public Env(String factory, String url, String adminUID, String adminPWD) {
		this.factory = factory;
		this.url = url;
		this.adminUID = adminUID;
		this.adminPWD = adminPWD;
	}

	/**
	 * ��* ���캯�� ��* @param factory LDAP �������� ��* @param url���� LDAP URL ��* @param
	 * adminUID LDAP �û� ��* @param adminPWD LDAP ���� ��* @param
	 * sslTrustStore����ȫ������Ҫ��֤�� ��* @param securityProtocol ��ȫͨ�7��� ��
	 */
	public Env(String factory, String url, String adminUID, String adminPWD,
			String sslTrustStore, String securityProtocol) {
		this.factory = factory;
		this.url = url;
		this.adminUID = adminUID;
		this.adminPWD = adminPWD;
		this.sslTrustStore = sslTrustStore;
		this.securityProtocol = securityProtocol;
	}

	/**
	 * ��* ���캯�� ��* @param factory LDAP �������� ��* @param url���� LDAP URL ��* @param
	 * adminUID LDAP �û� ��* @param adminPWD LDAP ���� ��* @param
	 * sslTrustStore����ȫ������Ҫ��֤�� ��* @param securityProtocol ��ȫͨ�7��� ��
	 */
	public Env(String factory, String url, String adminUID, String adminPWD,
			String timeOut, String sslTrustStore, String securityProtocol) {
		this.factory = factory;
		this.url = url;
		this.adminUID = adminUID;
		this.adminPWD = adminPWD;
		this.timeOut = timeOut;
		this.sslTrustStore = sslTrustStore;
		this.securityProtocol = securityProtocol;
	}
}
